home *** CD-ROM | disk | FTP | other *** search
- Path: noc.tor.hookup.net!the-fix.sos.on.ca
- From: <xenon@the-fix.sos.on.ca>
- Date: Wed,10 Jan 96 20:22:42 -0500
- Newsgroups: comp.lang.c
- Subject: Trouble with file return code.
- Message-ID: <tcpnntpd.16.1.10.20.22.42.2781597121.333610@the-fix.sos.on.ca>
- Organization: the FIX - Kitchener, Ontario CANADA
- NNTP-Posting-Host: the-fix.sos.on.ca
- X-MajorTCP-Version: MajorTCP/IP [1.80-0]
-
- Im having some trouble getting fread to return NULL when it can't
- find a specific file...
-
- else if((ptr=fread(filename1,"rb"))!=NULL)
- {
- //do this }
- else {
- // do that
- // this never executes, even if NULL is returned.
- No matter the file, Null is never returned. Although, when the variable
- ptr is outputed, the value shown is "0".
- thankx
- xenon@the-fix.sos.on.ca
-
-